package com.rjt.data.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.rjt.data.model.CuccInfo;
import com.rjt.data.model.CuccInfoPp;
import com.rjt.data.model.CuccInfoWeb;
import com.rjt.data.repository.CuccPpRepository;
import com.rjt.data.repository.CuccRepository;
import com.rjt.data.repository.CuccWebRepository;
import com.rjt.data.service.CuccService;

/**
 * Created by 廖师兄
 * 2017-05-09 17:31
 */
@Service
public class CuccServiceImpl implements CuccService {

    @Autowired
    private CuccRepository repository;
    @Autowired
    private CuccPpRepository ppRepository;
    @Autowired
    private CuccWebRepository webpRepository;
    

    @Override
    public CuccInfo save(CuccInfo CuccInfo) {
        return repository.save(CuccInfo);
    }

    @Override
    public CuccInfoPp saveP(CuccInfoPp cuccInfoPp) {
        return  ppRepository.save(cuccInfoPp);
    }

    @Override
    public CuccInfoWeb saveP(CuccInfoWeb cuccWeb) {
        return  webpRepository.save(cuccWeb);
    }

}
